package ooday02;

public class ExtendsTest {

    public static void main(String[] args) {

        Student s1 = new Student("李建霖学生", 22, "烟台", "jsd2404", "01");
        s1.sayHi();

        Teacher t1 = new Teacher("丁杰老师", 27, "青岛", 12000.9);
        t1.sayHi();

        Doctor d1 = new Doctor("李思浩医生", 42, "石家庄", "肛肠科医生");
        d1.sayHi();

        s1.work();
        t1.work();
        d1.work();

        s1.sleep();
        t1.eat();
        d1.eat();




    }

}
